package com.zjuee.service.auth.service;

import com.zjuee.base.dto.common.auth.UserDto;
import com.zjuee.base.model.common.auth.User;
import com.zjuee.base.base.Service;
import com.zjuee.service.auth.vo.UserVo;

/**
 * User Interface
 *
 * @author wu liang
 * @since 1.0
 */
public interface UserService  extends Service<UserVo, UserDto>{

    /**
     * 根据用户名查询用户
     *
     * @param nama
     * @return User
     */
    User selectByName(String nama);

    /**
     * 根据用户名判断用户是否存在
     *
     * @param name
     * @return boolean
     */
    boolean checkUserValid(String name);

    /**
     * 重置密码
     *
     * @param id Id
     * @return boolean
     */
    boolean restPassword(Long id);

    /**
     * 修改密码
     *
     * @param cipherText String
     */
    Boolean updatePassword(String cipherText);
}
